/**
 * 七牛云配置
 */
module.exports = {
  // 访问密钥
  accessKey: process.env.QINIU_ACCESS_KEY || 'jAZ1-Ihdn34V_yUcmMgHYMk2ahZ-HPlcPKipVTeN',
  secretKey: process.env.QINIU_SECRET_KEY || 'ZUMVNXFMfns9dkG2zjTX0t6fSsRP9fr5gZHB8fZS',
  
  // 允许的文件类型
  allowedTypes: ['image', 'document'],
  
  // 图片配置
  image: {
    bucket: process.env.QINIU_IMAGE_BUCKET || 'andycheng',
    domain: process.env.QINIU_IMAGE_DOMAIN || 'https://cdn.bingkele.cc/',
    ext: 'jpg',
    mimeTypes: ['image/jpeg', 'image/png', 'image/gif'],
    maxSize: 5 * 1024 * 1024 // 5MB
  },
  
  // 文档配置
  document: {
    bucket: process.env.QINIU_DOC_BUCKET || 'wuyue-docs',
    domain: process.env.QINIU_DOC_DOMAIN || 'https://docs.example.com/',
    ext: 'pdf',
    mimeTypes: ['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
    maxSize: 10 * 1024 * 1024 // 10MB
  },
  
  // 默认配置
  default: {
    bucket: process.env.QINIU_DEFAULT_BUCKET || 'wuyue-default',
    domain: process.env.QINIU_DEFAULT_DOMAIN || 'https://cdn.example.com/',
    ext: 'bin',
    maxSize: 20 * 1024 * 1024 // 20MB
  }
}; 